package com.hdsx.netty.spring;

import com.hdsx.netty.spring.demo.HelloController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author 占贤银
 * time 2024/8/15 14:51
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@ComponentScan("com.hdsx.netty.spring.demo")
public class HelloApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(HelloApplication.class);
        HelloController helloController = applicationContext.getBean(HelloController.class);
        System.out.println(helloController);
        System.out.println(helloController.helloSay());
    }
}
